package com.ant.storage.service;

import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.DepreciationDto;
import com.ant.storage.pojo.Depreciation;
import com.ant.storage.pojo.DepreciationDetails;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.springframework.validation.BindingResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author melon
 * @since 2023-12-23
 */
public interface IDepreciationService extends IService<Depreciation> {

    PageInfo<Depreciation> queryList(DepreciationDto dto);

    ResultVo DepreciationSave(Depreciation dto, BindingResult result);

    Depreciation findDepreciationById(Integer id);

    List<DepreciationDetails>  findCarInfoList() throws Exception;

   void saveDepreciation(List<DepreciationDetails> carInfoList,Integer tid) throws Exception;

    List<DepreciationDetails> findDepreciationList();

    ResultVo uploadDepreciation(MultipartFile file);
}
